Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(insights): pretty print more sql #19963

Merged
merged 12 commits into from
Jan 26, 2024
Merged

feat(insights): pretty print more sql #19963

merged 12 commits into from
Jan 26, 2024

Conversation

mariusandra
Copy link
Collaborator

Problem

Some SQL, like the lifecycle query's actors modal, didn't look too good:

image

Changes

Runs most printed HogQL through the same basic prettying we have elsewhere.

image

Also fixes a problem with indenting JOINs.

How did you test this code?

See screenshots.

@thmsobrmlr
Copy link
Contributor

Looks like some tests need to be updated accordingly.

@mariusandra
Copy link
Collaborator Author

Should be good now

Copy link
Contributor

@thmsobrmlr thmsobrmlr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mariusandra mariusandra merged commit 6b0b044 into master Jan 26, 2024
72 checks passed
@mariusandra mariusandra deleted the pretty-print-sql branch January 26, 2024 08:37
daibhin pushed a commit that referenced this pull request Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants